<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专项基金明细表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                             <li>
								<label>核算年度：</label>
								<select name="nd" id="nd">
									<option th:each="nd : ${ndlist}" th:text="${nd}" th:value="${nd}"> th:selected="${nd==year}"> </option>
								</select>
							</li>
                            <li >
								<label>核算期间： </label><select name="yf" id="yf">
								    <option th:each="yf : ${yflist}" th:text="${yf}" th:value="${yf}" th:selected="${yf==term}"></option>
								</select>
							</li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
               
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:zxjj:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/zxjj";

        $(function() {
            var options = {
                url: prefix + "/list",
                exportUrl: prefix + "/export",
                modalName: "专项基金明细表",
                pagination: false,
                columns: [
                	[{
						title : '专项基金明细表',
						align : 'center',
						colspan : 8
					 }],	
	                [{
	                    field: 'dwbm',
	                    title: '科目代码',
	                },{
	                    field: 'dwmc',
	                    title: '科目名称',
	                }, 
	                {
	                    field: 'qcye',
	                    title: '年初数'
	                },
	                {
	                    field: 'jfje',
	                    title: '本月收入'
	                },
	                {
	                    field: 'bnjf',
	                    title: '本年收入'
	                },{
	                    field: 'dfje',
	                    title: '本月支出',
	                },{
	                    field: 'bndf',
	                    title: '本年支出',
	                },
	                {
	                    field: 'qmye',
	                    title: '余额'
	                }]
                	]
            };
            $.table.init(options);
        });
        
    </script>
</body>
</html>